#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
@AUTHOR: tyc
@VERSION: 1.0.0
@DESCRIPTION: 
@time: 2021-07-03 17:32:06 
"""
import requests
content_utl = 'https://music.163.com/weapi/comment/resource/comments/get?csrf_token='
# todo data数据是加密的解决加密的问题
data = {
    'params': "rSqSNCuYIpbPfkVefTTRI++uJQ/pCNvbS76om8ySKE2qadfM9+s9041vRZqhsRJS0EBSUqsNkgiDKwwdjD84CJxWLwkWxq57M1ouHqV0yvyFLkE7zbNkkS679WBMgG/Ut+pzVNKlvrWYlYWATFMWk0i28EuuKsT+yIPdy53ttX2z+WdusIhPnbcb3FuAA6MEuQsRAdidHqGOP9yVqsyoD4OrvZ631jYIp5B+m8XPpWjoORc39am+EHYWNMHFp1lF3GUnYpxxf55dY4iZVyc+zcSaslbqteRUBnbF4IciFPg=",
    'encSecKey': "a70c3d73c67a014ab4d01bdafa5b674dbd2e4e805da27056ef80d1019fd8619a619514881064f1504c09587684cce08f8bfe0036eb4d5f28899fa0f3b807f8f8533df0c2271af135f34f009ccb29a7cf2dbc942c15b22b10c53e8342b9ea1808f9fa898b6dfafaf993228215c00ca9ee3b1f3d3231fdf3392a64f3c89df8d603"
}

hearders = {
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
    'referer': 'https://music.163.com/song?id=1487528112'
}
resp = requests.post(content_utl,data=data)

for conment in resp.json()['data']['comments']:
    print(conment['content'])